<div class="qf_ad <{$setting.class}> c-fix">
    <{if $setting.ad_pic || $setting.title}><div class="hd"><h3><{if $setting.ad_pic}><img src='<{$setting.ad_pic}>' /><{else}><{if $setting.title}><{$setting.title}><{/if}><{/if}></h3><{if $setting.morelink}><a href="<{$setting.morelink}>"><{$setting.moretext}></a><{/if}></div><{/if}>
	<{assign var="do" value="1"}>
	<{if $setting.showcol=="1"}><div class="disbox"><{/if}>
    <{foreach from=$data item=aditem key=key name=aditem}>
    <div class="item fore<{$do++}><{if $setting.showcol=="1"}> col <{/if}>">    
      <a href="<{$aditem.tolink}>"><img src="<{$aditem.link}>"  alt="<{$aditem.text}>" /><{if $setting.showtxt=="1"}><span><{$aditem.text}></span><{/if}></a>       
    </div>
     <{/foreach}>
	 <{if $setting.showcol=="1"}></div><{/if}>
</div>


